package com.twu.biblioteca.movie;

/**
 * Created by Enrico on 15/09/2014.
 */
public class Rating {

    private double score = 0;

    public Rating(double score){
        this.score = score;
    }

    public void setRating(double score) {
        this.score = score;
    }

    public boolean isUnrated() {
        return this.score == 0;
    }

    public double getScore() {
        return score;
    }

    public String toString() {
        return (score == 0) ? "unrated" : score + "";
    }
}
